﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tickz.Commonz
{
    public interface ISubject
    {
        /// <summary>
        /// 是否为必填项
        /// </summary>
        bool Required { set; get; }

        /// <summary>
        /// 组名
        /// </summary>
        string GroupName { get; set; }

        /// <summary>
        /// 是否通过验证
        /// </summary>
        bool IsPass { get; }

        /// <summary>
        /// 是否忽略验证
        /// </summary>
        bool Ignore { get; set; }

        /// <summary>
        /// 错误信息列表
        /// </summary>
        List<string> ErrorMessageList { get; set; }

        /// <summary>
        /// 当前错误
        /// </summary>
        string CurrentError { get; set; }

        /// <summary>
        /// 每次验证的json字符串
        /// </summary>
        List<string> JsonList { get; set; }

        /// <summary>
        /// 串接好的json字符串
        /// </summary>
        string JsonString { get; set; }

        /// <summary>
        /// 对应客户端控件的ID
        /// </summary>
        string ClientID { get; set; }

        /// <summary>
        /// 自定义错误控件显示id
        /// </summary>
        string CustomErrorID { get; set; }
    }
}
